//
//  MLDatePickerButton.h
//  InventoryTool
//
//  Created by molon on 14-1-23.
//  Copyright (c) 2014年 Molon. All rights reserved.
//
//跟MLPickerButton差不多。但是对于日期的一些属性设置，自行对UIDatePicker进行设置

#import <UIKit/UIKit.h>

@class MLDatePickerButton;
@protocol MLDatePickerButtonDelegate <NSObject>

- (void)doneWithDate:(NSDate*)date ofDatePickerButton:(MLDatePickerButton*)datePickerButton;

@optional
- (void)resignFirstResponderWithDatePickerButton:(MLDatePickerButton*)datePickerButton;
- (void)becomeFirstResponderWithDatePickerButton:(MLDatePickerButton*)datePickerButton;
- (void)didScrollToDate:(NSDate*)date ofDatePickerButton:(MLDatePickerButton*)datePickerButton;
@end

@interface MLDatePickerButton : UIButton

@property (nonatomic,weak) id<MLDatePickerButtonDelegate> delegate;
@property (nonatomic, assign) BOOL dontDisplayDimmingView; //不显示黑色遮罩

@property (nonatomic,copy) NSString *datePickerTitle; //toolBar上面的标题

@property (nonatomic , strong) UIDatePicker *datePicker;
- (void)touchUpInSide;


@end
